

import LayoutWithSidebar from '@/components/Layout/LayoutWithSidebar';
import LayoutWithoutSidebar from '@/components/Layout/LayoutWithoutSidebar';
import CommonView from '@/components/routerview';
// 社保公积金

// 参保管理
const InsuranceList= () => import('@/views/socialsecurity/insurance/list/index.vue');
const InsuranceChange= () => import('@/views/socialsecurity/insurance/change/index.vue');
const InsuranceMonthly= () => import('@/views/socialsecurity/insurance/monthly/index.vue');

// 自主参保方案
const SchemeList= () => import('@/views/socialsecurity/scheme/list/index.vue');
const SchemeAdd= () => import('@/views/socialsecurity/scheme/add/index.vue');


// 统计分析
const Overview= () => import('@/views/socialsecurity/overview/index.vue');
const Index= () => import('@/views/socialsecurity/overview/index/index.vue');
const Analysis= () => import('@/views/socialsecurity/overview/analysis/index.vue');


// 社保计算器
const Calculate= () => import('@/views/socialsecurity/calculate/index.vue');

const socialsecurity = {
    path: '/socialsecurity',
    component: LayoutWithSidebar,
    redirect: "/socialsecurity/insurance",
    meta:{
      name:"社保公积金"
    },
    children: [
      
      {
        path: 'insurance',
        component: CommonView,
        redirect: "/socialsecurity/insurance/list",
        meta:{
          name:"参保管理"
        },
        children: [
          {
            path: 'list',
            component:InsuranceList,
            meta:{
              name:"列表"
            },
            
          },
          {
            path: 'change',
            component:InsuranceChange,
            meta:{
              name:"增加"
            },
            
          },
          {
            path: 'monthly',
            component:InsuranceMonthly,
            meta:{
              name:"月度"
            },
            
          },
        
        ]
      },
      {
        path: 'scheme',
        component: CommonView,
        redirect: "/socialsecurity/scheme/list",
        meta:{
          name:"自主参保方案"
        },
        children: [
          {
            path: 'list',
            component:SchemeList,
            meta:{
              name:"列表"
            },
            
          },
          {
            path: 'add',
            component:SchemeAdd,
            meta:{
              name:"增加"
            },
            
          },
        
        ]
      },
      {
        path: 'overview',
        component: Overview,
        redirect: "/socialsecurity/overview/index",
        meta:{
          name:"统计分析"
        },
        children: [
          {
            path: 'index',
            component:Index,
            meta:{
              name:"参保概况"
            },
            
          },
          {
            path: 'analysis',
            component:Analysis,
            meta:{
              name:"趋势分析"
            },
            
          },
        
        ]
      },
      {
        path: 'calculate',
        component: Calculate,
        meta:{
          name:"统计分析"
        },
        children: [
        //   {
        //     path: 'index',
        //     component:Index,
        //     meta:{
        //       name:"参保概况"
        //     },
            
        //   },
        //   {
        //     path: 'analysis',
        //     component:Analysis,
        //     meta:{
        //       name:"趋势分析"
        //     },
            
        //   },
        
        ]
      },
    ],
   
  }

export default socialsecurity;